package org.lucky_common.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;

@Data
public class InviteExportVo implements Serializable {

    @Excel(name = "编号")
    private Long id;

    @Excel(name = "邀请次数")
    private String count2;

    @Excel(name = "有效邀请次数")
    private String effectiveCount;

    @Excel(name = "主邀请码")
    private String invitedCode;

    @Excel(name = "邀请者Id")
    private String parentId;

    public static final ThreadLocal<Integer> threadLocal_collectionSize = new ThreadLocal<>();
    public static final ThreadLocal<Integer> threadLocal_insertIndex = new ThreadLocal<>();

    public Long getUsername() {
        Integer insertIndex = threadLocal_insertIndex.get();
        insertIndex++;
        threadLocal_insertIndex.set( insertIndex );
        return id;
    }
}
